<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>重庆企业医院协会 志愿者后台</title>
    <include file="public@head_base"/>
    <style>
        .status-div {
            padding: 10px;
            width: 320px;
            margin: auto;
            text-align: center;
            margin-top: 120px;
        }
        .status-div img {
            width: 180px;
        }
        .status-div p {
            margin-top: 24px;
            font-size: 16px;
            color: #0055aa;
            text-align: center;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">志愿者后台</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{:cmf_get_image_url($volunteer.photo)}" class="layui-nav-img">
                    {$volunteer.name}
                </a>
            </li>
            <li class="layui-nav-item"><a href="{:cmf_url('volunteer/index/logout')}">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-this"><a href="{:cmf_url('volunteer/index/index')}">审核状态</a></li>
                <li class="layui-nav-item"><a href="{:cmf_url('volunteer/index/logs')}">活动记录</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            <if condition="$volunteer.status == 0">
                <div class="status-div">
                    <img src="__TMPL__/public/assets/images/waiting.png">
                    <p>等待审核</p>
                </div>
            </if>
            <if condition="$volunteer.status == 1">
                <div class="status-div">
                    <img src="__TMPL__/public/assets/images/ok.png">
                    <p>审核通过</p>
                </div>
            </if>
            <if condition="$volunteer.status == 2">
                <div class="status-div">
                    <img  src="__TMPL__/public/assets/images/fail.png">
                    <p>审核驳回</p>
                </div>
            </if>

        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © kooki.cn - 技术支持 夼旗科技
    </div>
</div>
<include file="public@scripts"/>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });
</script>
</body>
</html>
